package com.ysq;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Student2 implements Comparable<Student2> {
    private String name;
    private int age;
    private String studentId;
    private String address;

    @Override
    public int compareTo(Student2 other) {
        return this.studentId.compareTo(other.studentId);
    }
}